<!DOCTYPE html>
<html lang="zh-Hans" xmlns:th="http://www.thymeleaf.org">
<head>
	<title>会诊信息详情</title>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chorme=1">
	<meta name="renderer" content="webkit">
	<script src="/static/cqzd/js/boot.js"></script>
	<script src="/static/cqzd/js/national.js"></script>
	<style>

	</style>
</head>
<body>

<div id="tabs1" class="mini-tabs" activeIndex="0" style="width:100%;height:100%;" plain="false">
	<div title="会诊基本信息" >
		<div style="padding-top:5px">
			<div id="dib_form">
				<table style="width:100%;height:100%;table-layout:fixed;text-align: right;padding-right: 50px;line-height: 40px" class="mini-form-table" >
					<tr>
						<th class="mini-form-label"><label>就诊时间：</label></th>
						<td >
							<input id="recordTime" name="recordTime" class="mini-datepicker  mini-form-input myInput"  format="yyyy-MM-dd H:mm:ss" timeFormat="H:mm:ss" showTime="true"/>
						</td>

						<th class="mini-form-label"><label>患者姓名：</label></th>
						<td>
							<input id="patientName" name="patientName" class="mini-textbox  mini-form-input myInput"/>
						</td>

						<th class="mini-form-label"><label>身份证号：</label></th>
						<td>
							<input id="patientCardId" name="patientCardId" class="mini-textbox  mini-form-input myInput"/>
						</td>

					</tr>

					<tr >
						<th class="mini-form-label"><label>门诊号：</label></th>
						<td>
							<input id="outpatientNo" name="outpatientNo" class="mini-textbox  mini-form-input myInput"/>
						</td>

						<th class="mini-form-label"><label>会诊标题：</label></th>
						<td>
							<input id="dibTitle" name="dibTitle" class="mini-textbox  mini-form-input myInput"/>
						</td>

						<th class="mini-form-label"><label>会诊时间：</label></th>
						<td>
							<input id="dibTime" name="dibTime"  class="mini-datepicker  mini-form-input myInput"  format="yyyy-MM-dd H:mm:ss" timeFormat="H:mm:ss" showTime="true"   />
						</td>



					</tr>
					<tr class="odd">

						<th class="mini-form-label"><label>会诊地点：</label></th>
						<td >
							<input id="dibAddress" name="dibAddress" class="mini-textbox mini-form-input myInput" required="true" />
						</td>

						<th class="mini-form-label"><label>主持人：</label></th>
						<td>
							<input id="dibEmcee" name="dibEmcee" class="mini-textbox mini-form-input myInput" />
						</td>

						<th class="mini-form-label"><label>记录人：</label></th>
						<td>
							<input id="dibRecorder" name="dibRecorder" class="mini-textbox mini-form-input myInput" />
						</td>
					</tr>

					<tr>
						<th class="mini-form-label myTh"><label>参会人员：</label></th>
						<td class="myTd">
							<textarea class="mini-textarea myInput" style="height: 80px"  id="attendees"  >

							</textarea>
						</td>

						<th class="mini-form-label myTh"><label>缺席人员：</label></th>
						<td class="myTd">
							<textarea class="mini-textarea myInput" style="height: 80px"  id="absentee"  >

							</textarea>
						</td>

						<th class="mini-form-label myTh"><label>会诊目的：</label></th>
						<td class="myTd">
							<textarea class="mini-textarea myInput" style="height: 80px"  name="dibPurpose"  >

							</textarea>
						</td>

					</tr>

					<tr>

						<th class="mini-form-label myTh"><label>目前诊断：</label></th>
						<td class="myTd">
							<textarea class="mini-textarea myInput" style="height: 80px"  name="dibCurrent" >

							</textarea>
						</td>


						<th class="mini-form-label myTh"><label>病史特征：</label></th>
						<td class="myTd">
							<textarea class="mini-textarea myInput" style="height: 80px" name="dibFeature" >

							</textarea>
						</td>

						<th class="mini-form-label myTh"><label>产科咨询：</label></th>
						<td class="myTd">
							<textarea class="mini-textarea myInput" style="height: 80px" name="dibConsult" >

							</textarea>
						</td>


					</tr>
					<tr>
						<th class="mini-form-label myTh"><label>转运流程：</label></th>
						<td class="myTd">
							<textarea class="mini-textarea myInput" style="height: 80px" name="dibTransport" >

							</textarea>
						</td>

						<th class="mini-form-label myTh"><label>会诊意见：</label></th>
						<td class="myTd">
							<textarea class="mini-textarea myInput" style="height: 80px" name="dibPropose" >

							</textarea>
						</td>

						<th class="mini-form-label myTh"><label>其他：</label></th>
						<td class="myTd">
							<textarea class="mini-textarea myInput" style="height: 80px" name="dibOther" >

							</textarea>
						</td>
					</tr>

				</table>

			</div>
		</div>
	</div>

	<div title="病历查询" class="mini-tabs">
		<div class="mini-fit"  >
			<div id="files_grid" class="mini-datagrid" style="width:100%;height:100%;"  showPager='false'  >
				<div property="columns">
					<div field="fileName" width="260" headerAlign="center" align="center" allowSort="false" renderer="onActionRenderer">文件名称</div>
					<div field="fileExtension" width="120" headerAlign="center" align="center" allowSort="false" >文件后缀</div>
					<div field="fileSize" width="120" headerAlign="center" align="center" allowSort="false">文件大小(kb)</div>
					<div field="fileUpTime" width="160" headerAlign="center" align="center" allowSort="false" dateFormat="yyyy-MM-dd hh:mm:ss">上传时间</div>
					<div field="fileDownloadNo" width="120" headerAlign="center" align="center" allowSort="false" >下载次数</div>
<!--					<div field="fileRemark" width="120" headerAlign="center" align="center" allowSort="false">文件备注</div>-->
					<div field="upUserName" width="160" headerAlign="center" align="center" allowSort="false">上传人</div>

				</div>
			</div>
		</div>
	</div>
</div>

<script type="text/javascript">
	txkui.parse();
	var form = new mini.Form("dib_form");
	var files_grid = mini.get("files_grid");
	//设置表单元素只读
	form.setEnabled(false);

	function onActionRenderer(e) {
		var row=e.row;
		var aa = row.fileName;
		var s =  '<a href="/cqzd/do/dibfile/getFileByCode/' + row.fileCode + '">' + aa + '</a>';
		return s;

	}


	function SetData(dataP) {
		//跨页面传递的数据对象，克隆后才可以安全使用
		var data = mini.clone(dataP);
		var result=data.data;
		form.setData(result.dibAndDiacModel);
		files_grid.setData(result.dibFiles);
		var attendees=""; //参会人员
		var absentee="";  //缺席人员
		for(var i=0;i<result.dibEmp.length;i++){
			if(result.dibEmp[i].isAbsence=="1"){
				attendees+=result.dibEmp[i].empName+","
			}

			if(result.dibEmp[i].isAbsence=="0"){
				absentee+=result.dibEmp[i].empName+","
			}
		}
		attendees=attendees.slice(0,-1)
		absentee=absentee.slice(0,-1)
		mini.get("attendees").setValue(attendees);
		mini.get("absentee").setValue(absentee);

	}



</script>
</body>
</html>